<template>
	<scroll-view class="center">
		<view class="header">
			<view class="headerOne">
				<image src="https://z3.ax1x.com/2021/04/12/cBO5LQ.png"></image>
			</view>
			<view class="headerTwo">我的收获地址</view>
			<view class="headerThree">
				<navigator url="../mall-add-address/mall-add-address" open-type="navigate">添加新地址</navigator>	
			</view>
		</view>
		<view  class="content">
			<view class="address">
				<view class="addressImage">
					<image src="https://z3.ax1x.com/2021/04/10/casxiT.png"></image>
				</view>
				<view class="addresslist">
					<view>
						<text class="name">郑小渝</text>
						<text class="call">15968556162</text>
					</view>
					<view>
						<view class="text">
							<text class="text1">默认驿站</text>
							<text>四川省成都市成华区万年场御风一路8号明信鹿湾花园A区2004</text>
						</view>
					</view>
					<view>使用菜鸟驿站默认同意暂存条例</view>
				</view>
			</view>
		</view>
		<!-- 系统保存的地址数据渲染 -->
		<view class="saveAddress">
			<view class="address">
				<view class="addressImage">
					<image src="https://z3.ax1x.com/2021/04/10/casxiT.png"></image>
				</view>
				<view class="addresslist">
					<view>
						<text class="name">郑小渝</text>
						<text class="call">15968556162</text>
					</view>
					<view>
						<view class="text">
							<text>四川省成都市成华区万年场御风一路8号明信鹿湾花园A区2004</text>
						</view>
					</view>
				</view>
				<view class="modify">
					<navigator url="../mall-modify/mall-modify" open-type="navigate">
						<text> 编辑</text>
					</navigator>
					
				</view>
			</view>
		</view>
	</scroll-view>
</template>

<script>
	export default {
		data() {
			return {
				
			};
		}
	}
</script>

<style lang="scss" scoped>
	.center{
		padding: 12rpx;
		padding-top: 100rpx;
		background-color: #f5f5f5;
		box-sizing: border-box;
		.header{
			margin-bottom: 20rpx;
			width: 100%;
			display: flex;
			align-items: center;
			justify-content: space-between;
			.headerOne{
				display: flex;
				align-items: center;
				text-align: left;
				width: 33%;
				image{
					width: 70rpx;
					height: 70rpx;
				}
			}
			.headerTwo{
				text-align: center;
				width: 33%;
				color: #555555;
				font-weight: bold;
			}
			.headerThree{
				text-align: right;
				width: 33%;
				color:#ff700a;
				font-size: 30rpx;
			}
		}
		.content{
			/* 地址 */
			.address{
				width: 100%;
				background-color: #ffffff;
				border-radius: 10rpx;
				display: flex;
				box-sizing: border-box;
				padding: 10rpx;
				.addressImage{
					width: 15%;
					height: 160rpx;
					// background-color: #4CD964;
					display: flex;
					align-items: center;
					image{
						width: 95%;
						height: 90rpx;
					}
				}
				.addresslist{
					box-sizing: border-box;
					padding: 10rpx;
					width: 85%;
					view{
						&:nth-of-type(1){
							margin-bottom: 10rpx;
							.name{
								font-weight: bold;
								opacity: 0.8;
								font-size: 30rpx;
								margin-right: 20rpx;
							}
							.call{
								color: #555555;
								opacity: 0.8;
								font-size: 26rpx;
							}
							
						}
						&:nth-of-type(2){
							margin-bottom: 10rpx;
							.text{
								width: 95%;
								color: #000000;
								font-size: 26rpx;
								.text1{
									color: #333333;
									display: inline-block;
									border-radius: 5rpx;
									align-items: center; 
									background-color: #dfdfdf;
									margin-right: 20rpx;
								}
									
							}
						
						}
						&:nth-of-type(3){
							margin-top: 20rpx;
							font-size: 24rpx;
							color: #333333;
							opacity: 0.8;
						}
						
					}
				}
			}
		}
		// 保存的地址
		.saveAddress{
			margin-top: 20rpx;
			/* 地址 */
			.address{
				width: 100%;
				background-color: #ffffff;
				border-radius: 10rpx;
				display: flex;
				box-sizing: border-box;
				padding: 10rpx;
				.addressImage{
					width: 15%;
					height: 160rpx;
					// background-color: #4CD964;
					display: flex;
					align-items: center;
					image{
						width: 95%;
						height: 90rpx;
					}
				}
				.addresslist{
					box-sizing: border-box;
					padding: 10rpx;
					width: 75%;
					view{
						&:nth-of-type(1){
							margin-bottom: 10rpx;
							.name{
								font-weight: bold;
								opacity: 0.8;
								font-size: 30rpx;
								margin-right: 20rpx;
							}
							.call{
								color: #555555;
								opacity: 0.8;
								font-size: 26rpx;
							}
							
						}
						&:nth-of-type(2){
							display: flex;
							justify-content: space-between;
							margin-bottom: 10rpx;
							.text{
								width: 85%;
								color: #000000;
								font-size: 26rpx;
									
							}
							
						
						}
						
						
					}
				}
				.modify{
					width: 15%;
					font-size: 28rpx;
					color: #b3b2b6;
					display: flex;
					align-items: center;
					text{
						width: 80rpx;
						line-height: 60rpx;
						padding-left: 20rpx;
						height: 60rpx;
						display: inline-block;
						border-left: 1rpx solid  #c4c3c7;
					}
				}
			}
		}
	}

</style>
